<?php 	defined('_JEXEC') or die('Restricted access');	//九核模块，由【九木核心】开发制作：www.jmcore.com

	$n=2; //设置项名称中的最大编号，如有 v_100，则置：$n=100; 
	for ($i =0; $i <= $n; $i++)  $v[$i] = trim($params->get('v_'.$i));		//取得所有设置项的值

	if($v[0]) JFactory::getDocument()->addStyleDeclaration($v[0]); //添加补充样式，补充样式设置的名称固定为：name="v_0"
	$app = JFactory::getApplication();
	$menu = $app->getMenu();
	$t = $app->getTemplate(); //src="templates/$t/img/logo.gif"
	$p = jmcore::get_tpara();
	$eid_jj		= $p[11];
	$eid_news = $p[21];
	$eid_jliu	= $p[14];
	$eid_zzhi	= $p[15];
	$eid_tdui	= $p[13];
	$eid_wyh	= $p[16];


	$id_txt_news	= $p[31];
	$id_txt_jliu	= $p[32];

	$id_gsjj = $menu->getItem($eid_jj)->query['id'];
	$itemid = $eid_jj;
	$arr_art = jmcore::get_art('id='.$id_gsjj,1,null,'id,alias,introtext,catid,images');
	$id	=$arr_art[0]->id;
	$cid	=$arr_art[0]->catid;
	$alias=$arr_art[0]->alias;
	$txt	=jmcore:: get_text_limit($arr_art[0]->introtext, 165);
	$obj	 =json_decode($arr_art[0]->images);
	$img1=$obj->image_intro;
	$lk	=JRoute::_('index.php?option=com_content&view=article&id='.$id.':'.$alias.'&catid='.$cid.'&Itemid='.$itemid,false);
?>
<div class="m_<?php echo $mid.' '.$mnm; ?>">
	<div id="index_content_conter">
		<table>
			<tr>
				<td width="80">
					<img src="<?php echo JURI::base(true); ?>/templates/<?php echo $t; ?>/img/index_1022.png" width="91" height="22" />
				</td>
				<td width="398" align="right">
					<a href="<?php echo $lk; ?>"><img src="<?php echo JURI::base(true); ?>/templates/<?php echo $t; ?>/img/index_24.jpg" width="41" height="29" border="0" /></a>
			  </td>
			</tr>
		</table>

		<div id="index_content_xian"></div>

		<div id="index_content_nr"><?php 
		?>
			<a href="<?php echo $lk; ?>">
				<p><img height="140" width="181" style="float: left; margin: 5px 10px" alt="" src="<?php echo $img1; ?>" /></p>
				<p>&nbsp;</p>
				<p><?php echo $txt; ?></p>
			</a>
		</div>
		<div id="index_content_lb">
				<table>
				  <tr>
					<td width="80"><img src="<?php echo JURI::base(true); ?>/templates/<?php echo $t; ?>/img/index_32.jpg" width="91" height="19" /></td>
					<td width="398" align="right"><a href="<?php echo JRoute::_('index.php?Itemid='.$eid_news ,false) ; ?>"><img src="<?php echo JURI::base(true); ?>/templates/<?php echo $t; ?>/img/index_24.jpg" width="41" height="29" border="0" /></a></td>
				  </tr>
				</table>
				<div id="index_content_xian"></div>
				<div class="index_list">
					<ul><?php 
						$itemid = $eid_news;
						$arr_art = jmcore::get_art('id in('.$id_txt_news.')',0,' ordering asc ','id,title,alias,created,catid');
						if(count($arr_art)>0){
						foreach($arr_art as $m){
							$id	=$m->id;
							$title	=$m->title;
							$tit	=jmcore:: get_text_limit($title, 28);
							$alias=$m->alias;
							$dtm	   =$m->created;
							$dt	=substr($dtm,0,10);
							$cid	=$m->catid;
							$lk	=JRoute::_('index.php?option=com_content&view=article&id='.$id.':'.$alias.'&catid='.$cid.'&Itemid='.$itemid,false);
							echo'<li><a href="'.$lk.'" target="_blank" title="'.$title.'">'.$tit.'<span>'.$dt.'</span></a></li>';
						}} ?>
					</ul>
				</div>
		  </div>
	</div>

	<div id="index_content_right">
		<div id="index_right_img_top"></div>
		<ul><?php 
			$itemid = $eid_jliu;
			$arr_art = jmcore::get_art('id in('.$id_txt_jliu.')',0,' ordering asc ','id,title,alias,created,catid');
			if(count($arr_art)>0){
			foreach($arr_art as $m){
				$id	=$m->id;
				$title	=$m->title;
				$tit	=jmcore:: get_text_limit($title, 15);
				$alias=$m->alias;
				$dtm	   =$m->created;
				$dt	=substr($dtm,0,10);
				$cid	=$m->catid;
				$lk	=JRoute::_('index.php?option=com_content&view=article&id='.$id.':'.$alias.'&catid='.$cid.'&Itemid='.$itemid,false);
				echo'<li><a href="'.$lk.'" target="_blank" title="'.$title.'">'.$tit.'</a></li>';
			}} ?>
		</ul>
		<div id="index_right_img_bottom"> </div>
		<div id="index_right_pi"><p><a href="<?php echo JRoute::_('index.php?Itemid='.$eid_tdui ,false) ; ?>">PI 名录</a></p></div>
		<div id="index_right_xueshu"><p><a href="<?php echo JRoute::_('index.php?Itemid='.$eid_wyh ,false) ; ?>">学术委员会</a></p></div>
	</div>
</div>